import request from "@/utils/request";
import { hospitaldetailResponse, departmentInfo, department } from "./type";

enum API {
  // 医院详情接口
  HOSPITALINFODETAIL_URL = "/hosp/hospital/",
  //医院科室信息接口
  DEPARTMENTINFO_URL = "/hosp/hospital/department/",
}
// 查询医院详情信息
export const reqHospitalDetail = (hoscode: string) =>
  request.get<any, hospitaldetailResponse>(
    API.HOSPITALINFODETAIL_URL + hoscode
  );
//查询科室信息
export const reqDepartmentInfo = (hoscode: string) =>
  request.get<any, departmentInfo>(API.DEPARTMENTINFO_URL + hoscode);
